import request from '@/utils/request'

// 查询认证审核列表
export function listVerification(query) {
  return request({
    url: '/verification/verification/list',
    method: 'get',
    params: query
  })
}

// 查询认证审核详细
export function getVerification(verificationId) {
  return request({
    url: '/verification/verification/' + verificationId,
    method: 'get'
  })
}

// 新增认证审核
export function addVerification(data) {
  return request({
    url: '/verification/verification',
    method: 'post',
    data: data
  })
}

// 修改认证审核
export function updateVerification(data) {
  return request({
    url: '/verification/verification',
    method: 'put',
    data: data
  })
}

// 删除认证审核
export function delVerification(verificationId) {
  return request({
    url: '/verification/verification/' + verificationId,
    method: 'delete'
  })
}

// 通过认证审核
export function approveVerification(verificationId) {
  return request({
    url: '/verification/verification/approve/' + verificationId,
    method: 'put'
  })
}

// 驳回认证审核
export function rejectVerification(data) {
  return request({
    url: '/verification/verification/reject',
    method: 'put',
    data: data
  })
}